<?php
/**
 * Redirect without the use of .htaccess's rewrite rules.
 */
//var_dump($_SERVER);
$redirect = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')) . '/main';
//var_dump($redirect);
//var_dump(__FILE__);
    header("Location:$redirect");
    exit;
 ?>
